<?php error_reporting (E_ALL ^ E_NOTICE);  // Remove unneeded notices ?> 

<?php
    // Name: Justin Lee and Alexander Cam Liu
    // Modded code from cas-demo.php by Russell Tokuyama
    include 'phpfunctions.php';  // include Russell's php header code
   
?>
<?php if(!isset($_SESSION['name'])) { 
echo "$count";// Check to see if user is logged in
?> 
  <!DOCTYPE html>
  <html>
  
  <head>
    <title>UH Book Selling for Students</title>
    <!-- Bootstrap -->
    <link href="css/bootstrap.css" rel="stylesheet">
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script src="js/bootstrap.min.js"></script>
  </head>
  
  <body style="background-color:#66FF99">
    <div class="container">
      <div class="hero-unit">
        <img src="img/logo_comp.jpg" width="820px">
        <h3>"Sell your Books, Buy Books, Meet New Students!"</h3 >
      </div>  
    </div>  
    <div class="container">
      <div class="span4 offset4">
	  <button class="btn btn-large btn-block btn-primary" 
    type="button" value="LOGIN" onclick="location.href='<?php echo "$login";?>'">Log in</button>
    <button class="btn btn-large btn-block btn-primary" 
    type="button" value="LOGIN" onclick="location.href='link.txt'">Browse Books</button>
    <?php 
      } else {
        header("location: postbook.php");
      }
	  ?>
	 
      </div>
    </div> <!-- /container -->
  </body>
</html>	